import request from '@/utils/request'

// 查询机泵 - 站点关联列表
export function listDispatchPumpSiteRelations(query) {
  return request({
    url: '/system/dispatchPumpSiteRelations/list',
    method: 'get',
    params: query
  })
}

// 查询机泵 - 站点关联详细
export function getDispatchPumpSiteRelations(pumpSiteRelationId) {
  return request({
    url: '/system/dispatchPumpSiteRelations/' + pumpSiteRelationId,
    method: 'get'
  })
}

// 新增机泵 - 站点关联
export function addDispatchPumpSiteRelations(data) {
  return request({
    url: '/system/dispatchPumpSiteRelations',
    method: 'post',
    data: data
  })
}

// 修改机泵 - 站点关联
export function updateDispatchPumpSiteRelations(data) {
  return request({
    url: '/system/dispatchPumpSiteRelations',
    method: 'put',
    data: data
  })
}

// 删除机泵 - 站点关联
export function delDispatchPumpSiteRelations(pumpSiteRelationId) {
  return request({
    url: '/system/dispatchPumpSiteRelations/' + pumpSiteRelationId,
    method: 'delete'
  })
}
